

#ifndef TCPSERVE_H
#define TCPSERVE_H
#include<QTcpServer>
#include<tcpsocket.h>
#include<QObject>
#include<QWidget>
#include<mythread.h>
class mainwidget;
class Tcpserve : public QTcpServer   //由QTcpserve继承
{
    Q_OBJECT
public:
    Tcpserve(QWidget *parent);
private:
    mainwidget *m_wigdget;

protected:
    virtual void incomingConnection(qintptr);  //重写incominConnection函数
private slots:
    void socketdiscon();

};

#endif // TCPSERVE_H
